{#foreach $T.records as record}
	<div class="record-element" 
		data-id="{$T.record$key}" 
		{commons.attributes.amount}="{$T.record.amount}"
		{commons.attributes.category}="{getCategoryName($T.record.category).toLowerCase()}"
		data-time="{$T.record.date}"
		data-value="{$T.record.category}" >
	</div> 
{#/for}